package com.cj.user.service.demo;

import com.google.common.io.Files;

import javax.annotation.Resource;
import java.io.File;
import java.util.*;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/7/15 15:13
 */
public class Demo9 {

    /*@Resource
    private static BdcFtpConfigBean bdcFtpConfigBeanstatic;
    @Resource
    private static TengXunUrlBean tengXunUrlBeanstatic;

    public static boolean receiveFiles(String data,String path){
        //获取 接收方式
        String xzfs = tengXunUrlBeanstatic.getXzfs();
        StaticLog.info("当前的xzfs是:" + xzfs);
        if ("copy".equals(xzfs)){
            //copy
            return getCopy( data, path);
        }else {
            return getFtp(data, path);
        }

    }*/

    public static void main(String[] args) {
        "a".equals("q");
        List<String> list = new ArrayList<>();
        Set<String> set = new HashSet<>();
        Collections.addAll(new ArrayList<>());
        Queue<String> queue = new LinkedList<>();
        queue.offer("11");
        queue.offer("22");
        System.out.println(queue.element());
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue.element());
        Iterator iterator = list.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }
}
